package com.hejiu45.hejiu45_api_test.controller.utils;

import lombok.Data;

//前端数据传输协议
@Data
public class R {
    private Boolean flag;
    private Object data;

    private String message;

//    public R(List<Users> users) {
//
//    }

    public R() {

    }

    public R(Boolean flag) {
        this.flag = flag;
    }

    public R(Boolean flag, Object data) {
        this.flag = flag;
        this.data = data;
    }

    public R(Boolean flag, String message) {
        this.flag = flag;
        this.message = message;
    }

    public R(Boolean flag, Object data, String message) {
        this.flag = flag;
        this.data = data;
        this.message = message;
    }
}
